import sys
import xmlrpclib

''' configuration bits '''
CLIENTVERSION = '0.0.1'
SERVERHOST = 'localhost'
SERVERPORT = 3170


#TODO: use the bootstrapper here to get our base config


#CRITICAL: gotta get the parameters from the bootstrapper, or it won't connect.
try:
	server = SecureXMLRPCClient()
except(Exception,serverErr):
	pass


serverVer = server.ver()


if serverVer != CLIENTVERSION:
	print("client/server mismatch!")
else:
	try:
 		print(server.ver())
	except(xmlrpclib.Fault,err):
		print("Error %d: %s" % (err.faultCode,err.faultString))
